package com.hamster.tools.i18nManger.commands
{
	import com.hamster.tools.i18nManger.model.PropertyFileVOProxy;
	
	import flash.filesystem.File;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	public class ScanTargetFolderCommand extends SimpleCommand
	{
		public function ScanTargetFolderCommand()
		{
			super();
		}
		
		override public function execute(notification:INotification):void
		{
			var data:Object = notification.getBody();
			var folder:String = data.folder;
			var proxy:PropertyFileVOProxy = PropertyFileVOProxy(facade.retrieveProxy(PropertyFileVOProxy.NAME));
			proxy.scan(new File(folder));
		}
	}
}